<?php
include("chk_permission.php");//must to be member
//check permission -------------------------
if($user_type <> "2" && $user_type <> "3"  && $user_type <> "4"  && $user_type <> "5"){// member
	?>
		<script type="text/javascript">
			window.location.href='index.php';
		</script>
	<?
		exit();
}
// -----------------------------------------
include("connect/connect_dsccmis.php");

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>รายละเอียดเหตุการณ์</title>
<style type="text/css">
<!--
body {
	background-image: url(images/background01.jpg);
}
.style1 {
	font-family: Arial, Helvetica, sans-serif;
	font-weight: normal;
	font-size: 14px;
}
-->
</style>
</head>
<body>
<?php
$evnid = $_GET["evnid"];
//mysql_query("set names utf8");
$sql = "select evndes from gis_event where evnid='$evnid'";
//echo $sql;
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
?>
<table>
	<tr class="style1">
    	 <td><b>รายละเอียดเหตุการณ์</b></td>
 	</tr>
    <tr class="style1">
      <td><? echo $row[0];?></td>
    </tr>
	<tr><td>
	  <div align="center">
	    <p>&nbsp;        </p>
	    <p>
	      <input name="btprint" type="button" value="พิมพ์" onClick="window.print();"/>
        </p>
	  </div></td>
	</tr>
</table>
<?php
// น่าจะเพิ่มในส่วนของการ list รายชื่อผู้ได้รับผลกระทบ
mysql_close();
?>
</body>
</html>